﻿/**
 * jQuery EasyUI 1.5
 *
 * Copyright (c) 2009-2016 www.jeasyui.com. All rights reserved.
 *
 * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
 * To use it on other terms please contact us: info@jeasyui.com
 *
 */
(function ($) {
    var _1 = 0;

    function _2(a, o) {
        return $.easyui.indexOfArray(a, o);
    };

    function _3(a, o, id) {
        $.easyui.removeArrayItem(a, o, id);
    };

    function _4(a, o, r) {
        $.easyui.addArrayItem(a, o, r);
    };

    function _5(_6, aa) {
        return $.data(_6, "treegrid") ? aa.slice(1) : aa;
    };

    function _7(_8) {
        var _9 = $.data(_8, "datagrid");
        var _a = _9.options;
        var _b = _9.panel;
        var dc = _9.dc;
        var ss = null;
        if (_a.sharedStyleSheet) {
            ss = typeof _a.sharedStyleSheet == "boolean" ? "head" : _a.sharedStyleSheet;
        } else {
            ss = _b.closest("div.datagrid-view");
            if (!ss.length) {
                ss = dc.view;
            }
        }
        var cc = $(ss);
        var _c = $.data(cc[0], "ss");
        if (!_c) {
            _c = $.data(cc[0], "ss", {cache: {}, dirty: []});
        }
        return {
            add: function (_d) {
                var ss = ["<style type=\"text/css\" easyui=\"true\">"];
                for (var i = 0; i < _d.length; i++) {
                    _c.cache[_d[i][0]] = {width: _d[i][1]};
                }
                var _e = 0;
                for (var s in _c.cache) {
                    var _f = _c.cache[s];
                    _f.index = _e++;
                    ss.push(s + "{width:" + _f.width + "}");
                }
                ss.push("</style>");
                $(ss.join("\n")).appendTo(cc);
                cc.children("style[easyui]:not(:last)").remove();
            }, getRule: function (_10) {
                var _11 = cc.children("style[easyui]:last")[0];
                var _12 = _11.styleSheet ? _11.styleSheet : (_11.sheet || document.styleSheets[document.styleSheets.length - 1]);
                var _13 = _12.cssRules || _12.rules;
                return _13[_10];
            }, set: function (_14, _15) {
                var _16 = _c.cache[_14];
                if (_16) {
                    _16.width = _15;
                    var _17 = this.getRule(_16.index);
                    if (_17) {
                        _17.style["width"] = _15;
                    }
                }
            }, remove: function (_18) {
                var tmp = [];
                for (var s in _c.cache) {
                    if (s.indexOf(_18) == -1) {
                        tmp.push([s, _c.cache[s].width]);
                    }
                }
                _c.cache = {};
                this.add(tmp);
            }, dirty: function (_19) {
                if (_19) {
                    _c.dirty.push(_19);
                }
            }, clean: function () {
                for (var i = 0; i < _c.dirty.length; i++) {
                    this.remove(_c.dirty[i]);
                }
                _c.dirty = [];
            }
        };
    };

    function _1a(_1b, _1c) {
        var _1d = $.data(_1b, "datagrid");
        var _1e = _1d.options;
        var _1f = _1d.panel;
        if (_1c) {
            $.extend(_1e, _1c);
        }
        if (_1e.fit == true) {
            var p = _1f.panel("panel").parent();
            _1e.width = p.width();
            _1e.height = p.height();
        }
        _1f.panel("resize", _1e);
    };

    function _20(_21) {
        var _22 = $.data(_21, "datagrid");
        var _23 = _22.options;
        var dc = _22.dc;
        var _24 = _22.panel;
        var _25 = _24.width();
        var _26 = _24.height();
        var _27 = dc.view;
        var _28 = dc.view1;
        var _29 = dc.view2;
        var _2a = _28.children("div.datagrid-header");
        var _2b = _29.children("div.datagrid-header");
        var _2c = _2a.find("table");
        var _2d = _2b.find("table");
        _27.width(_25);
        var _2e = _2a.children("div.datagrid-header-inner").show();
        _28.width(_2e.find("table").width());
        if (!_23.showHeader) {
            _2e.hide();
        }
        _29.width(_25 - _28._outerWidth());
        _28.children()._outerWidth(_28.width());
        _29.children()._outerWidth(_29.width());
        var all = _2a.add(_2b).add(_2c).add(_2d);
        all.css("height", "");
        var hh = Math.max(_2c.height(), _2d.height());
        all._outerHeight(hh);
        _27.children(".datagrid-empty").css("top", hh + "px");
        dc.body1.add(dc.body2).children("table.datagrid-btable-frozen").css({
            position: "absolute",
            top: dc.header2._outerHeight()
        });
        var _2f = dc.body2.children("table.datagrid-btable-frozen")._outerHeight();
        var _30 = _2f + _2b._outerHeight() + _29.children(".datagrid-footer")._outerHeight();
        _24.children(":not(.datagrid-view,.datagrid-mask,.datagrid-mask-msg)").each(function () {
            _30 += $(this)._outerHeight();
        });
        var _31 = _24.outerHeight() - _24.height();
        var _32 = _24._size("minHeight") || "";
        var _33 = _24._size("maxHeight") || "";
        _28.add(_29).children("div.datagrid-body").css({
            marginTop: _2f,
            height: (isNaN(parseInt(_23.height)) ? "" : (_26 - _30)),
            minHeight: (_32 ? _32 - _31 - _30 : ""),
            maxHeight: (_33 ? _33 - _31 - _30 : "")
        });
        _27.height(_29.height());
    };

    function _34(_35, _36, _37) {
        var _38 = $.data(_35, "datagrid").data.rows;
        var _39 = $.data(_35, "datagrid").options;
        var dc = $.data(_35, "datagrid").dc;
        if (!dc.body1.is(":empty") && (!_39.nowrap || _39.autoRowHeight || _37)) {
            if (_36 != undefined) {
                var tr1 = _39.finder.getTr(_35, _36, "body", 1);
                var tr2 = _39.finder.getTr(_35, _36, "body", 2);
                _3a(tr1, tr2);
            } else {
                var tr1 = _39.finder.getTr(_35, 0, "allbody", 1);
                var tr2 = _39.finder.getTr(_35, 0, "allbody", 2);
                _3a(tr1, tr2);
                if (_39.showFooter) {
                    var tr1 = _39.finder.getTr(_35, 0, "allfooter", 1);
                    var tr2 = _39.finder.getTr(_35, 0, "allfooter", 2);
                    _3a(tr1, tr2);
                }
            }
        }
        _20(_35);
        if (_39.height == "auto") {
            var _3b = dc.body1.parent();
            var _3c = dc.body2;
            var _3d = _3e(_3c);
            var _3f = _3d.height;
            if (_3d.width > _3c.width()) {
                _3f += 18;
            }
            _3f -= parseInt(_3c.css("marginTop")) || 0;
            _3b.height(_3f);
            _3c.height(_3f);
            dc.view.height(dc.view2.height());
        }
        dc.body2.triggerHandler("scroll");

        function _3a(_40, _41) {
            for (var i = 0; i < _41.length; i++) {
                var tr1 = $(_40[i]);
                var tr2 = $(_41[i]);
                tr1.css("height", "");
                tr2.css("height", "");
                var _42 = Math.max(tr1.height(), tr2.height());
                tr1.css("height", _42);
                tr2.css("height", _42);
            }
        };

        function _3e(cc) {
            var _43 = 0;
            var _44 = 0;
            $(cc).children().each(function () {
                var c = $(this);
                if (c.is(":visible")) {
                    _44 += c._outerHeight();
                    if (_43 < c._outerWidth()) {
                        _43 = c._outerWidth();
                    }
                }
            });
            return {width: _43, height: _44};
        };
    };

    function _45(_46, _47) {
        var _48 = $.data(_46, "datagrid");
        var _49 = _48.options;
        var dc = _48.dc;
        if (!dc.body2.children("table.datagrid-btable-frozen").length) {
            dc.body1.add(dc.body2).prepend("<table class=\"datagrid-btable datagrid-btable-frozen\" cellspacing=\"0\" cellpadding=\"0\"></table>");
        }
        _4a(true);
        _4a(false);
        _20(_46);

        function _4a(_4b) {
            var _4c = _4b ? 1 : 2;
            var tr = _49.finder.getTr(_46, _47, "body", _4c);
            (_4b ? dc.body1 : dc.body2).children("table.datagrid-btable-frozen").append(tr);
        };
    };

    function _4d(_4e, _4f) {
        function _50() {
            var _51 = [];
            var _52 = [];
            $(_4e).children("thead").each(function () {
                var opt = $.parser.parseOptions(this, [{frozen: "boolean"}]);
                $(this).find("tr").each(function () {
                    var _53 = [];
                    $(this).find("th").each(function () {
                        var th = $(this);
                        var col = $.extend({}, $.parser.parseOptions(this, ["id", "field", "align", "halign", "order", "width", {
                            sortable: "boolean",
                            checkbox: "boolean",
                            resizable: "boolean",
                            fixed: "boolean"
                        }, {rowspan: "number", colspan: "number"}]), {
                            title: (th.html() || undefined),
                            hidden: (th.attr("hidden") ? true : undefined),
                            formatter: (th.attr("formatter") ? eval(th.attr("formatter")) : undefined),
                            styler: (th.attr("styler") ? eval(th.attr("styler")) : undefined),
                            sorter: (th.attr("sorter") ? eval(th.attr("sorter")) : undefined)
                        });
                        if (col.width && String(col.width).indexOf("%") == -1) {
                            col.width = parseInt(col.width);
                        }
                        if (th.attr("editor")) {
                            var s = $.trim(th.attr("editor"));
                            if (s.substr(0, 1) == "{") {
                                col.editor = eval("(" + s + ")");
                            } else {
                                col.editor = s;
                            }
                        }
                        _53.push(col);
                    });
                    opt.frozen ? _51.push(_53) : _52.push(_53);
                });
            });
            return [_51, _52];
        };
        var _54 = $("<div class=\"datagrid-wrap\">" + "<div class=\"datagrid-view\">" + "<div class=\"datagrid-view1\">" + "<div class=\"datagrid-header\">" + "<div class=\"datagrid-header-inner\"></div>" + "</div>" + "<div class=\"datagrid-body\">" + "<div class=\"datagrid-body-inner\"></div>" + "</div>" + "<div class=\"datagrid-footer\">" + "<div class=\"datagrid-footer-inner\"></div>" + "</div>" + "</div>" + "<div class=\"datagrid-view2\">" + "<div class=\"datagrid-header\">" + "<div class=\"datagrid-header-inner\"></div>" + "</div>" + "<div class=\"datagrid-body\"></div>" + "<div class=\"datagrid-footer\">" + "<div class=\"datagrid-footer-inner\"></div>" + "</div>" + "</div>" + "</div>" + "</div>").insertAfter(_4e);
        _54.panel({doSize: false, cls: "datagrid"});
        $(_4e).addClass("datagrid-f").hide().appendTo(_54.children("div.datagrid-view"));
        var cc = _50();
        var _55 = _54.children("div.datagrid-view");
        var _56 = _55.children("div.datagrid-view1");
        var _57 = _55.children("div.datagrid-view2");
        return {
            panel: _54,
            frozenColumns: cc[0],
            columns: cc[1],
            dc: {
                view: _55,
                view1: _56,
                view2: _57,
                header1: _56.children("div.datagrid-header").children("div.datagrid-header-inner"),
                header2: _57.children("div.datagrid-header").children("div.datagrid-header-inner"),
                body1: _56.children("div.datagrid-body").children("div.datagrid-body-inner"),
                body2: _57.children("div.datagrid-body"),
                footer1: _56.children("div.datagrid-footer").children("div.datagrid-footer-inner"),
                footer2: _57.children("div.datagrid-footer").children("div.datagrid-footer-inner")
            }
        };
    };

    function _58(_59) {
        var _5a = $.data(_59, "datagrid");
        var _5b = _5a.options;
        var dc = _5a.dc;
        var _5c = _5a.panel;
        _5a.ss = $(_59).datagrid("createStyleSheet");
        _5c.panel($.extend({}, _5b, {
            id: null, doSize: false, onResize: function (_5d, _5e) {
                if ($.data(_59, "datagrid")) {
                    _20(_59);
                    $(_59).datagrid("fitColumns");
                    _5b.onResize.call(_5c, _5d, _5e);
                }
            }, onExpand: function () {
                if ($.data(_59, "datagrid")) {
                    $(_59).datagrid("fixRowHeight").datagrid("fitColumns");
                    _5b.onExpand.call(_5c);
                }
            }
        }));
        _5a.rowIdPrefix = "datagrid-row-r" + (++_1);
        _5a.cellClassPrefix = "datagrid-cell-c" + _1;
        _5f(dc.header1, _5b.frozenColumns, true);
        _5f(dc.header2, _5b.columns, false);
        _60();
        dc.header1.add(dc.header2).css("display", _5b.showHeader ? "block" : "none");
        dc.footer1.add(dc.footer2).css("display", _5b.showFooter ? "block" : "none");
        if (_5b.toolbar) {
            if ($.isArray(_5b.toolbar)) {
                $("div.datagrid-toolbar", _5c).remove();
                var tb = $("<div class=\"datagrid-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>").prependTo(_5c);
                var tr = tb.find("tr");
                for (var i = 0; i < _5b.toolbar.length; i++) {
                    var btn = _5b.toolbar[i];
                    if (btn == "-") {
                        $("<td><div class=\"datagrid-btn-separator\"></div></td>").appendTo(tr);
                    } else {
                        var td = $("<td></td>").appendTo(tr);
                        var _61 = $("<a href=\"javascript:void(0)\"></a>").appendTo(td);
                        _61[0].onclick = eval(btn.handler || function () {
                        });
                        _61.linkbutton($.extend({}, btn, {plain: true}));
                    }
                }
            } else {
                $(_5b.toolbar).addClass("datagrid-toolbar").prependTo(_5c);
                $(_5b.toolbar).show();
            }
        } else {
            $("div.datagrid-toolbar", _5c).remove();
        }
        $("div.datagrid-pager", _5c).remove();
        if (_5b.pagination) {
            var _62 = $("<div class=\"datagrid-pager\"></div>");
            if (_5b.pagePosition == "bottom") {
                _62.appendTo(_5c);
            } else {
                if (_5b.pagePosition == "top") {
                    _62.addClass("datagrid-pager-top").prependTo(_5c);
                } else {
                    var _63 = $("<div class=\"datagrid-pager datagrid-pager-top\"></div>").prependTo(_5c);
                    _62.appendTo(_5c);
                    _62 = _62.add(_63);
                }
            }
            _62.pagination({
                total: (_5b.pageNumber * _5b.pageSize),
                pageNumber: _5b.pageNumber,
                pageSize: _5b.pageSize,
                pageList: _5b.pageList,
                onSelectPage: function (_64, _65) {
                    _5b.pageNumber = _64 || 1;
                    _5b.pageSize = _65;
                    _62.pagination("refresh", {pageNumber: _64, pageSize: _65});
                    _bf(_59);
                }
            });
            _5b.pageSize = _62.pagination("options").pageSize;
        }

        function _5f(_66, _67, _68) {
            if (!_67) {
                return;
            }
            $(_66).show();
            $(_66).empty();
            var tmp = $("<div class=\"datagrid-cell\" style=\"position:absolute;left:-99999px\"></div>").appendTo("body");
            tmp._outerWidth(99);
            var _69 = 100 - parseInt(tmp[0].style.width);
            tmp.remove();
            var _6a = [];
            var _6b = [];
            var _6c = [];
            if (_5b.sortName) {
                _6a = _5b.sortName.split(",");
                _6b = _5b.sortOrder.split(",");
            }
            var t = $("<table class=\"datagrid-htable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody></tbody></table>").appendTo(_66);
            for (var i = 0; i < _67.length; i++) {
                var tr = $("<tr class=\"datagrid-header-row\"></tr>").appendTo($("tbody", t));
                var _6d = _67[i];
                for (var j = 0; j < _6d.length; j++) {
                    var col = _6d[j];
                    var _6e = "";
                    if (col.rowspan) {
                        _6e += "rowspan=\"" + col.rowspan + "\" ";
                    }
                    if (col.colspan) {
                        _6e += "colspan=\"" + col.colspan + "\" ";
                        if (!col.id) {
                            col.id = ["datagrid-td-group" + _1, i, j].join("-");
                        }
                    }
                    if (col.id) {
                        _6e += "id=\"" + col.id + "\"";
                    }
                    var td = $("<td " + _6e + "></td>").appendTo(tr);
                    if (col.checkbox) {
                        td.attr("field", col.field);
                        $("<div class=\"datagrid-header-check\"></div>").html("<input type=\"checkbox\"/>").appendTo(td);
                    } else {
                        if (col.field) {
                            td.attr("field", col.field);
                            td.append("<div class=\"datagrid-cell\"><span></span><span class=\"datagrid-sort-icon\"></span></div>");
                            td.find("span:first").html(col.title);
                            var _6f = td.find("div.datagrid-cell");
                            var pos = _2(_6a, col.field);
                            if (pos >= 0) {
                                _6f.addClass("datagrid-sort-" + _6b[pos]);
                            }
                            if (col.sortable) {
                                _6f.addClass("datagrid-sort");
                            }
                            if (col.resizable == false) {
                                _6f.attr("resizable", "false");
                            }
                            if (col.width) {
                                var _70 = $.parser.parseValue("width", col.width, dc.view, _5b.scrollbarSize + (_5b.rownumbers ? _5b.rownumberWidth : 0));
                                col.deltaWidth = _69;
                                col.boxWidth = _70 - _69;
                            } else {
                                col.auto = true;
                            }
                            _6f.css("text-align", (col.halign || col.align || ""));
                            col.cellClass = _5a.cellClassPrefix + "-" + col.field.replace(/[\.|\s]/g, "-");
                            _6f.addClass(col.cellClass);
                        } else {
                            $("<div class=\"datagrid-cell-group\"></div>").html(col.title).appendTo(td);
                        }
                    }
                    if (col.hidden) {
                        td.hide();
                        _6c.push(col.field);
                    }
                }
            }
            if (_68 && _5b.rownumbers) {
                var td = $("<td rowspan=\"" + _5b.frozenColumns.length + "\"><div class=\"datagrid-header-rownumber\"></div></td>");
                if ($("tr", t).length == 0) {
                    td.wrap("<tr class=\"datagrid-header-row\"></tr>").parent().appendTo($("tbody", t));
                } else {
                    td.prependTo($("tr:first", t));
                }
            }
            for (var i = 0; i < _6c.length; i++) {
                _c1(_59, _6c[i], -1);
            }
        };

        function _60() {
            var _71 = [[".datagrid-header-rownumber", (_5b.rownumberWidth - 1) + "px"], [".datagrid-cell-rownumber", (_5b.rownumberWidth - 1) + "px"]];
            var _72 = _73(_59, true).concat(_73(_59));
            for (var i = 0; i < _72.length; i++) {
                var col = _74(_59, _72[i]);
                if (col && !col.checkbox) {
                    _71.push(["." + col.cellClass, col.boxWidth ? col.boxWidth + "px" : "auto"]);
                }
            }
            _5a.ss.add(_71);
            _5a.ss.dirty(_5a.cellSelectorPrefix);
            _5a.cellSelectorPrefix = "." + _5a.cellClassPrefix;
        };
    };

    function _75(_76) {
        var _77 = $.data(_76, "datagrid");
        var _78 = _77.panel;
        var _79 = _77.options;
        var dc = _77.dc;
        var _7a = dc.header1.add(dc.header2);
        _7a.unbind(".datagrid");
        for (var _7b in _79.headerEvents) {
            _7a.bind(_7b + ".datagrid", _79.headerEvents[_7b]);
        }
        var _7c = _7a.find("div.datagrid-cell");
        var _7d = _79.resizeHandle == "right" ? "e" : (_79.resizeHandle == "left" ? "w" : "e,w");
        _7c.each(function () {
            $(this).resizable({
                handles: _7d,
                disabled: ($(this).attr("resizable") ? $(this).attr("resizable") == "false" : false),
                minWidth: 25,
                onStartResize: function (e) {
                    _77.resizing = true;
                    _7a.css("cursor", $("body").css("cursor"));
                    if (!_77.proxy) {
                        _77.proxy = $("<div class=\"datagrid-resize-proxy\"></div>").appendTo(dc.view);
                    }
                    _77.proxy.css({left: e.pageX - $(_78).offset().left - 1, display: "none"});
                    setTimeout(function () {
                        if (_77.proxy) {
                            _77.proxy.show();
                        }
                    }, 500);
                },
                onResize: function (e) {
                    _77.proxy.css({left: e.pageX - $(_78).offset().left - 1, display: "block"});
                    return false;
                },
                onStopResize: function (e) {
                    _7a.css("cursor", "");
                    $(this).css("height", "");
                    var _7e = $(this).parent().attr("field");
                    var col = _74(_76, _7e);
                    col.width = $(this)._outerWidth();
                    col.boxWidth = col.width - col.deltaWidth;
                    col.auto = undefined;
                    $(this).css("width", "");
                    $(_76).datagrid("fixColumnSize", _7e);
                    _77.proxy.remove();
                    _77.proxy = null;
                    if ($(this).parents("div:first.datagrid-header").parent().hasClass("datagrid-view1")) {
                        _20(_76);
                    }
                    $(_76).datagrid("fitColumns");
                    _79.onResizeColumn.call(_76, _7e, col.width);
                    setTimeout(function () {
                        _77.resizing = false;
                    }, 0);
                }
            });
        });
        var bb = dc.body1.add(dc.body2);
        bb.unbind();
        for (var _7b in _79.rowEvents) {
            bb.bind(_7b, _79.rowEvents[_7b]);
        }
        dc.body1.bind("mousewheel DOMMouseScroll", function (e) {
            e.preventDefault();
            var e1 = e.originalEvent || window.event;
            var _7f = e1.wheelDelta || e1.detail * (-1);
            if ("deltaY" in e1) {
                _7f = e1.deltaY * -1;
            }
            var dg = $(e.target).closest("div.datagrid-view").children(".datagrid-f");
            var dc = dg.data("datagrid").dc;
            dc.body2.scrollTop(dc.body2.scrollTop() - _7f);
        });
        dc.body2.bind("scroll", function () {
            var b1 = dc.view1.children("div.datagrid-body");
            b1.scrollTop($(this).scrollTop());
            var c1 = dc.body1.children(":first");
            var c2 = dc.body2.children(":first");
            if (c1.length && c2.length) {
                var _80 = c1.offset().top;
                var _81 = c2.offset().top;
                if (_80 != _81) {
                    b1.scrollTop(b1.scrollTop() + _80 - _81);
                }
            }
            dc.view2.children("div.datagrid-header,div.datagrid-footer")._scrollLeft($(this)._scrollLeft());
            dc.body2.children("table.datagrid-btable-frozen").css("left", -$(this)._scrollLeft());
        });
    };

    function _82(_83) {
        return function (e) {
            var td = $(e.target).closest("td[field]");
            if (td.length) {
                var _84 = _85(td);
                if (!$(_84).data("datagrid").resizing && _83) {
                    td.addClass("datagrid-header-over");
                } else {
                    td.removeClass("datagrid-header-over");
                }
            }
        };
    };

    function _86(e) {
        var _87 = _85(e.target);
        var _88 = $(_87).datagrid("options");
        var ck = $(e.target).closest("input[type=checkbox]");
        if (ck.length) {
            if (_88.singleSelect && _88.selectOnCheck) {
                return false;
            }
            if (ck.is(":checked")) {
                _89(_87);
            } else {
                _8a(_87);
            }
            e.stopPropagation();
        } else {
            var _8b = $(e.target).closest(".datagrid-cell");
            if (_8b.length) {
                var p1 = _8b.offset().left + 5;
                var p2 = _8b.offset().left + _8b._outerWidth() - 5;
                if (e.pageX < p2 && e.pageX > p1) {
                    _8c(_87, _8b.parent().attr("field"));
                }
            }
        }
    };

    function _8d(e) {
        var _8e = _85(e.target);
        var _8f = $(_8e).datagrid("options");
        var _90 = $(e.target).closest(".datagrid-cell");
        if (_90.length) {
            var p1 = _90.offset().left + 5;
            var p2 = _90.offset().left + _90._outerWidth() - 5;
            var _91 = _8f.resizeHandle == "right" ? (e.pageX > p2) : (_8f.resizeHandle == "left" ? (e.pageX < p1) : (e.pageX < p1 || e.pageX > p2));
            if (_91) {
                var _92 = _90.parent().attr("field");
                var col = _74(_8e, _92);
                if (col.resizable == false) {
                    return;
                }
                $(_8e).datagrid("autoSizeColumn", _92);
                col.auto = false;
            }
        }
    };

    function _93(e) {
        var _94 = _85(e.target);
        var _95 = $(_94).datagrid("options");
        var td = $(e.target).closest("td[field]");
        _95.onHeaderContextMenu.call(_94, e, td.attr("field"));
    };

    function _96(_97) {
        return function (e) {
            var tr = _98(e.target);
            if (!tr) {
                return;
            }
            var _99 = _85(tr);
            if ($.data(_99, "datagrid").resizing) {
                return;
            }
            var _9a = _9b(tr);
            if (_97) {
                _9c(_99, _9a);
            } else {
                var _9d = $.data(_99, "datagrid").options;
                _9d.finder.getTr(_99, _9a).removeClass("datagrid-row-over");
            }
        };
    };

    function _9e(e) {
        var tr = _98(e.target);
        if (!tr) {
            return;
        }
        var _9f = _85(tr);
        var _a0 = $.data(_9f, "datagrid").options;
        var _a1 = _9b(tr);
        var tt = $(e.target);
        if (tt.parent().hasClass("datagrid-cell-check")) {
            if (_a0.singleSelect && _a0.selectOnCheck) {
                tt._propAttr("checked", !tt.is(":checked"));
                _a2(_9f, _a1);
            } else {
                if (tt.is(":checked")) {
                    tt._propAttr("checked", false);
                    _a2(_9f, _a1);
                } else {
                    tt._propAttr("checked", true);
                    _a3(_9f, _a1);
                }
            }
        } else {
            var row = _a0.finder.getRow(_9f, _a1);
            var td = tt.closest("td[field]", tr);
            if (td.length) {
                var _a4 = td.attr("field");
                _a0.onClickCell.call(_9f, _a1, _a4, row[_a4]);
            }
            if (_a0.singleSelect == true) {
                _a5(_9f, _a1);
            } else {
                if (_a0.ctrlSelect) {
                    if (e.ctrlKey) {
                        if (tr.hasClass("datagrid-row-selected")) {
                            _a6(_9f, _a1);
                        } else {
                            _a5(_9f, _a1);
                        }
                    } else {
                        if (e.shiftKey) {
                            $(_9f).datagrid("clearSelections");
                            var _a7 = Math.min(_a0.lastSelectedIndex || 0, _a1);
                            var _a8 = Math.max(_a0.lastSelectedIndex || 0, _a1);
                            for (var i = _a7; i <= _a8; i++) {
                                _a5(_9f, i);
                            }
                        } else {
                            $(_9f).datagrid("clearSelections");
                            _a5(_9f, _a1);
                            _a0.lastSelectedIndex = _a1;
                        }
                    }
                } else {
                    if (tr.hasClass("datagrid-row-selected")) {
                        _a6(_9f, _a1);
                    } else {
                        _a5(_9f, _a1);
                    }
                }
            }
            _a0.onClickRow.apply(_9f, _5(_9f, [_a1, row]));
        }
    };

    function _a9(e) {
        var tr = _98(e.target);
        if (!tr) {
            return;
        }
        var _aa = _85(tr);
        var _ab = $.data(_aa, "datagrid").options;
        var _ac = _9b(tr);
        var row = _ab.finder.getRow(_aa, _ac);
        var td = $(e.target).closest("td[field]", tr);
        if (td.length) {
            var _ad = td.attr("field");
            _ab.onDblClickCell.call(_aa, _ac, _ad, row[_ad]);
        }
        _ab.onDblClickRow.apply(_aa, _5(_aa, [_ac, row]));
    };

    function _ae(e) {
        var tr = _98(e.target);
        if (tr) {
            var _af = _85(tr);
            var _b0 = $.data(_af, "datagrid").options;
            var _b1 = _9b(tr);
            var row = _b0.finder.getRow(_af, _b1);
            _b0.onRowContextMenu.call(_af, e, _b1, row);
        } else {
            var _b2 = _98(e.target, ".datagrid-body");
            if (_b2) {
                var _af = _85(_b2);
                var _b0 = $.data(_af, "datagrid").options;
                _b0.onRowContextMenu.call(_af, e, -1, null);
            }
        }
    };

    function _85(t) {
        return $(t).closest("div.datagrid-view").children(".datagrid-f")[0];
    };

    function _98(t, _b3) {
        var tr = $(t).closest(_b3 || "tr.datagrid-row");
        if (tr.length && tr.parent().length) {
            return tr;
        } else {
            return undefined;
        }
    };

    function _9b(tr) {
        if (tr.attr("datagrid-row-index")) {
            return parseInt(tr.attr("datagrid-row-index"));
        } else {
            return tr.attr("node-id");
        }
    };

    function _8c(_b4, _b5) {
        var _b6 = $.data(_b4, "datagrid");
        var _b7 = _b6.options;
        _b5 = _b5 || {};
        var _b8 = {sortName: _b7.sortName, sortOrder: _b7.sortOrder};
        if (typeof _b5 == "object") {
            $.extend(_b8, _b5);
        }
        var _b9 = [];
        var _ba = [];
        if (_b8.sortName) {
            _b9 = _b8.sortName.split(",");
            _ba = _b8.sortOrder.split(",");
        }
        if (typeof _b5 == "string") {
            var _bb = _b5;
            var col = _74(_b4, _bb);
            if (!col.sortable || _b6.resizing) {
                return;
            }
            var _bc = col.order || "asc";
            var pos = _2(_b9, _bb);
            if (pos >= 0) {
                var _bd = _ba[pos] == "asc" ? "desc" : "asc";
                if (_b7.multiSort && _bd == _bc) {
                    _b9.splice(pos, 1);
                    _ba.splice(pos, 1);
                } else {
                    _ba[pos] = _bd;
                }
            } else {
                if (_b7.multiSort) {
                    _b9.push(_bb);
                    _ba.push(_bc);
                } else {
                    _b9 = [_bb];
                    _ba = [_bc];
                }
            }
            _b8.sortName = _b9.join(",");
            _b8.sortOrder = _ba.join(",");
        }
        if (_b7.onBeforeSortColumn.call(_b4, _b8.sortName, _b8.sortOrder) == false) {
            return;
        }
        $.extend(_b7, _b8);
        var dc = _b6.dc;
        var _be = dc.header1.add(dc.header2);
        _be.find("div.datagrid-cell").removeClass("datagrid-sort-asc datagrid-sort-desc");
        for (var i = 0; i < _b9.length; i++) {
            var col = _74(_b4, _b9[i]);
            _be.find("div." + col.cellClass).addClass("datagrid-sort-" + _ba[i]);
        }
        if (_b7.remoteSort) {
            _bf(_b4);
        } else {
            _c0(_b4, $(_b4).datagrid("getData"));
        }
        _b7.onSortColumn.call(_b4, _b7.sortName, _b7.sortOrder);
    };

    function _c1(_c2, _c3, _c4) {
        _c5(true);
        _c5(false);

        function _c5(_c6) {
            var aa = _c7(_c2, _c6);
            if (aa.length) {
                var _c8 = aa[aa.length - 1];
                var _c9 = _2(_c8, _c3);
                if (_c9 >= 0) {
                    for (var _ca = 0; _ca < aa.length - 1; _ca++) {
                        var td = $("#" + aa[_ca][_c9]);
                        var _cb = parseInt(td.attr("colspan") || 1) + (_c4 || 0);
                        td.attr("colspan", _cb);
                        if (_cb) {
                            td.show();
                        } else {
                            td.hide();
                        }
                    }
                }
            }
        };
    };

    function _cc(_cd) {
        var _ce = $.data(_cd, "datagrid");
        var _cf = _ce.options;
        var dc = _ce.dc;
        var _d0 = dc.view2.children("div.datagrid-header");
        dc.body2.css("overflow-x", "");
        _d1();
        _d2();
        _d3();
        _d1(true);
        if (_d0.width() >= _d0.find("table").width()) {
            dc.body2.css("overflow-x", "hidden");
        }

        function _d3() {
            if (!_cf.fitColumns) {
                return;
            }
            if (!_ce.leftWidth) {
                _ce.leftWidth = 0;
            }
            var _d4 = 0;
            var cc = [];
            var _d5 = _73(_cd, false);
            for (var i = 0; i < _d5.length; i++) {
                var col = _74(_cd, _d5[i]);
                if (_d6(col)) {
                    _d4 += col.width;
                    cc.push({field: col.field, col: col, addingWidth: 0});
                }
            }
            if (!_d4) {
                return;
            }
            cc[cc.length - 1].addingWidth -= _ce.leftWidth;
            var _d7 = _d0.children("div.datagrid-header-inner").show();
            var _d8 = _d0.width() - _d0.find("table").width() - _cf.scrollbarSize + _ce.leftWidth;
            var _d9 = _d8 / _d4;
            if (!_cf.showHeader) {
                _d7.hide();
            }
            for (var i = 0; i < cc.length; i++) {
                var c = cc[i];
                var _da = parseInt(c.col.width * _d9);
                c.addingWidth += _da;
                _d8 -= _da;
            }
            cc[cc.length - 1].addingWidth += _d8;
            for (var i = 0; i < cc.length; i++) {
                var c = cc[i];
                if (c.col.boxWidth + c.addingWidth > 0) {
                    c.col.boxWidth += c.addingWidth;
                    c.col.width += c.addingWidth;
                }
            }
            _ce.leftWidth = _d8;
            $(_cd).datagrid("fixColumnSize");
        };

        function _d2() {
            var _db = false;
            var _dc = _73(_cd, true).concat(_73(_cd, false));
            $.map(_dc, function (_dd) {
                var col = _74(_cd, _dd);
                if (String(col.width || "").indexOf("%") >= 0) {
                    var _de = $.parser.parseValue("width", col.width, dc.view, _cf.scrollbarSize + (_cf.rownumbers ? _cf.rownumberWidth : 0)) - col.deltaWidth;
                    if (_de > 0) {
                        col.boxWidth = _de;
                        _db = true;
                    }
                }
            });
            if (_db) {
                $(_cd).datagrid("fixColumnSize");
            }
        };

        function _d1(fit) {
            var _df = dc.header1.add(dc.header2).find(".datagrid-cell-group");
            if (_df.length) {
                _df.each(function () {
                    $(this)._outerWidth(fit ? $(this).parent().width() : 10);
                });
                if (fit) {
                    _20(_cd);
                }
            }
        };

        function _d6(col) {
            if (String(col.width || "").indexOf("%") >= 0) {
                return false;
            }
            if (!col.hidden && !col.checkbox && !col.auto && !col.fixed) {
                return true;
            }
        };
    };

    function _e0(_e1, _e2) {
        var _e3 = $.data(_e1, "datagrid");
        var _e4 = _e3.options;
        var dc = _e3.dc;
        var tmp = $("<div class=\"datagrid-cell\" style=\"position:absolute;left:-9999px\"></div>").appendTo("body");
        if (_e2) {
            _1a(_e2);
            $(_e1).datagrid("fitColumns");
        } else {
            var _e5 = false;
            var _e6 = _73(_e1, true).concat(_73(_e1, false));
            for (var i = 0; i < _e6.length; i++) {
                var _e2 = _e6[i];
                var col = _74(_e1, _e2);
                if (col.auto) {
                    _1a(_e2);
                    _e5 = true;
                }
            }
            if (_e5) {
                $(_e1).datagrid("fitColumns");
            }
        }
        tmp.remove();

        function _1a(_e7) {
            var _e8 = dc.view.find("div.datagrid-header td[field=\"" + _e7 + "\"] div.datagrid-cell");
            _e8.css("width", "");
            var col = $(_e1).datagrid("getColumnOption", _e7);
            col.width = undefined;
            col.boxWidth = undefined;
            col.auto = true;
            $(_e1).datagrid("fixColumnSize", _e7);
            var _e9 = Math.max(_ea("header"), _ea("allbody"), _ea("allfooter")) + 1;
            _e8._outerWidth(_e9 - 1);
            col.width = _e9;
            col.boxWidth = parseInt(_e8[0].style.width);
            col.deltaWidth = _e9 - col.boxWidth;
            _e8.css("width", "");
            $(_e1).datagrid("fixColumnSize", _e7);
            _e4.onResizeColumn.call(_e1, _e7, col.width);

            function _ea(_eb) {
                var _ec = 0;
                if (_eb == "header") {
                    _ec = _ed(_e8);
                } else {
                    _e4.finder.getTr(_e1, 0, _eb).find("td[field=\"" + _e7 + "\"] div.datagrid-cell").each(function () {
                        var w = _ed($(this));
                        if (_ec < w) {
                            _ec = w;
                        }
                    });
                }
                return _ec;

                function _ed(_ee) {
                    return _ee.is(":visible") ? _ee._outerWidth() : tmp.html(_ee.html())._outerWidth();
                };
            };
        };
    };

    function _ef(_f0, _f1) {
        var _f2 = $.data(_f0, "datagrid");
        var _f3 = _f2.options;
        var dc = _f2.dc;
        var _f4 = dc.view.find("table.datagrid-btable,table.datagrid-ftable");
        _f4.css("table-layout", "fixed");
        if (_f1) {
            fix(_f1);
        } else {
            var ff = _73(_f0, true).concat(_73(_f0, false));
            for (var i = 0; i < ff.length; i++) {
                fix(ff[i]);
            }
        }
        _f4.css("table-layout", "");
        _f5(_f0);
        _34(_f0);
        _f6(_f0);

        function fix(_f7) {
            var col = _74(_f0, _f7);
            if (col.cellClass) {
                _f2.ss.set("." + col.cellClass, col.boxWidth ? col.boxWidth + "px" : "auto");
            }
        };
    };

    function _f5(_f8, tds) {
        var dc = $.data(_f8, "datagrid").dc;
        tds = tds || dc.view.find("td.datagrid-td-merged");
        tds.each(function () {
            var td = $(this);
            var _f9 = td.attr("colspan") || 1;
            if (_f9 > 1) {
                var col = _74(_f8, td.attr("field"));
                var _fa = col.boxWidth + col.deltaWidth - 1;
                for (var i = 1; i < _f9; i++) {
                    td = td.next();
                    col = _74(_f8, td.attr("field"));
                    _fa += col.boxWidth + col.deltaWidth;
                }
                $(this).children("div.datagrid-cell")._outerWidth(_fa);
            }
        });
    };

    function _f6(_fb) {
        var dc = $.data(_fb, "datagrid").dc;
        dc.view.find("div.datagrid-editable").each(function () {
            var _fc = $(this);
            var _fd = _fc.parent().attr("field");
            var col = $(_fb).datagrid("getColumnOption", _fd);
            _fc._outerWidth(col.boxWidth + col.deltaWidth - 1);
            var ed = $.data(this, "datagrid.editor");
            if (ed.actions.resize) {
                ed.actions.resize(ed.target, _fc.width());
            }
        });
    };

    function _74(_fe, _ff) {
        function find(_100) {
            if (_100) {
                for (var i = 0; i < _100.length; i++) {
                    var cc = _100[i];
                    for (var j = 0; j < cc.length; j++) {
                        var c = cc[j];
                        if (c.field == _ff) {
                            return c;
                        }
                    }
                }
            }
            return null;
        };
        var opts = $.data(_fe, "datagrid").options;
        var col = find(opts.columns);
        if (!col) {
            col = find(opts.frozenColumns);
        }
        return col;
    };

    function _c7(_101, _102) {
        var opts = $.data(_101, "datagrid").options;
        var _103 = _102 ? opts.frozenColumns : opts.columns;
        var aa = [];
        var _104 = _105();
        for (var i = 0; i < _103.length; i++) {
            aa[i] = new Array(_104);
        }
        for (var _106 = 0; _106 < _103.length; _106++) {
            $.map(_103[_106], function (col) {
                var _107 = _108(aa[_106]);
                if (_107 >= 0) {
                    var _109 = col.field || col.id || "";
                    for (var c = 0; c < (col.colspan || 1); c++) {
                        for (var r = 0; r < (col.rowspan || 1); r++) {
                            aa[_106 + r][_107] = _109;
                        }
                        _107++;
                    }
                }
            });
        }
        return aa;

        function _105() {
            var _10a = 0;
            $.map(_103[0] || [], function (col) {
                _10a += col.colspan || 1;
            });
            return _10a;
        };

        function _108(a) {
            for (var i = 0; i < a.length; i++) {
                if (a[i] == undefined) {
                    return i;
                }
            }
            return -1;
        };
    };

    function _73(_10b, _10c) {
        var aa = _c7(_10b, _10c);
        return aa.length ? aa[aa.length - 1] : aa;
    };

    function _c0(_10d, data) {
        var _10e = $.data(_10d, "datagrid");
        var opts = _10e.options;
        var dc = _10e.dc;
        data = opts.loadFilter.call(_10d, data);
        if ($.isArray(data)) {
            data = {total: data.length, rows: data};
        }
        data.total = parseInt(data.total);
        _10e.data = data;
        if (data.footer) {
            _10e.footer = data.footer;
        }
        if (!opts.remoteSort && opts.sortName) {
            var _10f = opts.sortName.split(",");
            var _110 = opts.sortOrder.split(",");
            data.rows.sort(function (r1, r2) {
                var r = 0;
                for (var i = 0; i < _10f.length; i++) {
                    var sn = _10f[i];
                    var so = _110[i];
                    var col = _74(_10d, sn);
                    var _111 = col.sorter || function (a, b) {
                        return a == b ? 0 : (a > b ? 1 : -1);
                    };
                    r = _111(r1[sn], r2[sn]) * (so == "asc" ? 1 : -1);
                    if (r != 0) {
                        return r;
                    }
                }
                return r;
            });
        }
        if (opts.view.onBeforeRender) {
            opts.view.onBeforeRender.call(opts.view, _10d, data.rows);
        }
        opts.view.render.call(opts.view, _10d, dc.body2, false);
        opts.view.render.call(opts.view, _10d, dc.body1, true);
        if (opts.showFooter) {
            opts.view.renderFooter.call(opts.view, _10d, dc.footer2, false);
            opts.view.renderFooter.call(opts.view, _10d, dc.footer1, true);
        }
        if (opts.view.onAfterRender) {
            opts.view.onAfterRender.call(opts.view, _10d);
        }
        _10e.ss.clean();
        var _112 = $(_10d).datagrid("getPager");
        if (_112.length) {
            var _113 = _112.pagination("options");
            if (_113.total != data.total) {
                _112.pagination("refresh", {total: data.total});
                if (opts.pageNumber != _113.pageNumber && _113.pageNumber > 0) {
                    opts.pageNumber = _113.pageNumber;
                    _bf(_10d);
                }
            }
        }
        _34(_10d);
        dc.body2.triggerHandler("scroll");
        $(_10d).datagrid("setSelectionState");
        $(_10d).datagrid("autoSizeColumn");
        opts.onLoadSuccess.call(_10d, data);
    };

    function _114(_115) {
        var _116 = $.data(_115, "datagrid");
        var opts = _116.options;
        var dc = _116.dc;
        dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked", false);
        if (opts.idField) {
            var _117 = $.data(_115, "treegrid") ? true : false;
            var _118 = opts.onSelect;
            var _119 = opts.onCheck;
            opts.onSelect = opts.onCheck = function () {
            };
            var rows = opts.finder.getRows(_115);
            for (var i = 0; i < rows.length; i++) {
                var row = rows[i];
                var _11a = _117 ? row[opts.idField] : i;
                if (_11b(_116.selectedRows, row)) {
                    _a5(_115, _11a, true);
                }
                if (_11b(_116.checkedRows, row)) {
                    _a2(_115, _11a, true);
                }
            }
            opts.onSelect = _118;
            opts.onCheck = _119;
        }

        function _11b(a, r) {
            for (var i = 0; i < a.length; i++) {
                if (a[i][opts.idField] == r[opts.idField]) {
                    a[i] = r;
                    return true;
                }
            }
            return false;
        };
    };

    function _11c(_11d, row) {
        var _11e = $.data(_11d, "datagrid");
        var opts = _11e.options;
        var rows = _11e.data.rows;
        if (typeof row == "object") {
            return _2(rows, row);
        } else {
            for (var i = 0; i < rows.length; i++) {
                if (rows[i][opts.idField] == row) {
                    return i;
                }
            }
            return -1;
        }
    };

    function _11f(_120) {
        var _121 = $.data(_120, "datagrid");
        var opts = _121.options;
        var data = _121.data;
        if (opts.idField) {
            return _121.selectedRows;
        } else {
            var rows = [];
            opts.finder.getTr(_120, "", "selected", 2).each(function () {
                rows.push(opts.finder.getRow(_120, $(this)));
            });
            return rows;
        }
    };

    function _122(_123) {
        var _124 = $.data(_123, "datagrid");
        var opts = _124.options;
        if (opts.idField) {
            return _124.checkedRows;
        } else {
            var rows = [];
            opts.finder.getTr(_123, "", "checked", 2).each(function () {
                rows.push(opts.finder.getRow(_123, $(this)));
            });
            return rows;
        }
    };

    function _125(_126, _127) {
        var _128 = $.data(_126, "datagrid");
        var dc = _128.dc;
        var opts = _128.options;
        var tr = opts.finder.getTr(_126, _127);
        if (tr.length) {
            if (tr.closest("table").hasClass("datagrid-btable-frozen")) {
                return;
            }
            var _129 = dc.view2.children("div.datagrid-header")._outerHeight();
            var _12a = dc.body2;
            var _12b = _12a.outerHeight(true) - _12a.outerHeight();
            var top = tr.position().top - _129 - _12b;
            if (top < 0) {
                _12a.scrollTop(_12a.scrollTop() + top);
            } else {
                if (top + tr._outerHeight() > _12a.height() - 18) {
                    _12a.scrollTop(_12a.scrollTop() + top + tr._outerHeight() - _12a.height() + 18);
                }
            }
        }
    };

    function _9c(_12c, _12d) {
        var _12e = $.data(_12c, "datagrid");
        var opts = _12e.options;
        opts.finder.getTr(_12c, _12e.highlightIndex).removeClass("datagrid-row-over");
        opts.finder.getTr(_12c, _12d).addClass("datagrid-row-over");
        _12e.highlightIndex = _12d;
    };

    function _a5(_12f, _130, _131) {
        var _132 = $.data(_12f, "datagrid");
        var opts = _132.options;
        var row = opts.finder.getRow(_12f, _130);
        if (opts.onBeforeSelect.apply(_12f, _5(_12f, [_130, row])) == false) {
            return;
        }
        if (opts.singleSelect) {
            _133(_12f, true);
            _132.selectedRows = [];
        }
        if (!_131 && opts.checkOnSelect) {
            _a2(_12f, _130, true);
        }
        if (opts.idField) {
            _4(_132.selectedRows, opts.idField, row);
        }
        opts.finder.getTr(_12f, _130).addClass("datagrid-row-selected");
        opts.onSelect.apply(_12f, _5(_12f, [_130, row]));
        _125(_12f, _130);
    };

    function _a6(_134, _135, _136) {
        var _137 = $.data(_134, "datagrid");
        var dc = _137.dc;
        var opts = _137.options;
        var row = opts.finder.getRow(_134, _135);
        if (opts.onBeforeUnselect.apply(_134, _5(_134, [_135, row])) == false) {
            return;
        }
        if (!_136 && opts.checkOnSelect) {
            _a3(_134, _135, true);
        }
        opts.finder.getTr(_134, _135).removeClass("datagrid-row-selected");
        if (opts.idField) {
            _3(_137.selectedRows, opts.idField, row[opts.idField]);
        }
        opts.onUnselect.apply(_134, _5(_134, [_135, row]));
    };

    function _138(_139, _13a) {
        var _13b = $.data(_139, "datagrid");
        var opts = _13b.options;
        var rows = opts.finder.getRows(_139);
        var _13c = $.data(_139, "datagrid").selectedRows;
        if (!_13a && opts.checkOnSelect) {
            _89(_139, true);
        }
        opts.finder.getTr(_139, "", "allbody").addClass("datagrid-row-selected");
        if (opts.idField) {
            for (var _13d = 0; _13d < rows.length; _13d++) {
                _4(_13c, opts.idField, rows[_13d]);
            }
        }
        opts.onSelectAll.call(_139, rows);
    };

    function _133(_13e, _13f) {
        var _140 = $.data(_13e, "datagrid");
        var opts = _140.options;
        var rows = opts.finder.getRows(_13e);
        var _141 = $.data(_13e, "datagrid").selectedRows;
        if (!_13f && opts.checkOnSelect) {
            _8a(_13e, true);
        }
        opts.finder.getTr(_13e, "", "selected").removeClass("datagrid-row-selected");
        if (opts.idField) {
            for (var _142 = 0; _142 < rows.length; _142++) {
                _3(_141, opts.idField, rows[_142][opts.idField]);
            }
        }
        opts.onUnselectAll.call(_13e, rows);
    };

    function _a2(_143, _144, _145) {
        var _146 = $.data(_143, "datagrid");
        var opts = _146.options;
        var row = opts.finder.getRow(_143, _144);
        if (opts.onBeforeCheck.apply(_143, _5(_143, [_144, row])) == false) {
            return;
        }
        if (opts.singleSelect && opts.selectOnCheck) {
            _8a(_143, true);
            _146.checkedRows = [];
        }
        if (!_145 && opts.selectOnCheck) {
            _a5(_143, _144, true);
        }
        var tr = opts.finder.getTr(_143, _144).addClass("datagrid-row-checked");
        tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked", true);
        tr = opts.finder.getTr(_143, "", "checked", 2);
        if (tr.length == opts.finder.getRows(_143).length) {
            var dc = _146.dc;
            dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked", true);
        }
        if (opts.idField) {
            _4(_146.checkedRows, opts.idField, row);
        }
        opts.onCheck.apply(_143, _5(_143, [_144, row]));
    };

    function _a3(_147, _148, _149) {
        var _14a = $.data(_147, "datagrid");
        var opts = _14a.options;
        var row = opts.finder.getRow(_147, _148);
        if (opts.onBeforeUncheck.apply(_147, _5(_147, [_148, row])) == false) {
            return;
        }
        if (!_149 && opts.selectOnCheck) {
            _a6(_147, _148, true);
        }
        var tr = opts.finder.getTr(_147, _148).removeClass("datagrid-row-checked");
        tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked", false);
        var dc = _14a.dc;
        var _14b = dc.header1.add(dc.header2);
        _14b.find("input[type=checkbox]")._propAttr("checked", false);
        if (opts.idField) {
            _3(_14a.checkedRows, opts.idField, row[opts.idField]);
        }
        opts.onUncheck.apply(_147, _5(_147, [_148, row]));
    };

    function _89(_14c, _14d) {
        var _14e = $.data(_14c, "datagrid");
        var opts = _14e.options;
        var rows = opts.finder.getRows(_14c);
        if (!_14d && opts.selectOnCheck) {
            _138(_14c, true);
        }
        var dc = _14e.dc;
        var hck = dc.header1.add(dc.header2).find("input[type=checkbox]");
        var bck = opts.finder.getTr(_14c, "", "allbody").addClass("datagrid-row-checked").find("div.datagrid-cell-check input[type=checkbox]");
        hck.add(bck)._propAttr("checked", true);
        if (opts.idField) {
            for (var i = 0; i < rows.length; i++) {
                _4(_14e.checkedRows, opts.idField, rows[i]);
            }
        }
        opts.onCheckAll.call(_14c, rows);
    };

    function _8a(_14f, _150) {
        var _151 = $.data(_14f, "datagrid");
        var opts = _151.options;
        var rows = opts.finder.getRows(_14f);
        if (!_150 && opts.selectOnCheck) {
            _133(_14f, true);
        }
        var dc = _151.dc;
        var hck = dc.header1.add(dc.header2).find("input[type=checkbox]");
        var bck = opts.finder.getTr(_14f, "", "checked").removeClass("datagrid-row-checked").find("div.datagrid-cell-check input[type=checkbox]");
        hck.add(bck)._propAttr("checked", false);
        if (opts.idField) {
            for (var i = 0; i < rows.length; i++) {
                _3(_151.checkedRows, opts.idField, rows[i][opts.idField]);
            }
        }
        opts.onUncheckAll.call(_14f, rows);
    };

    function _152(_153, _154) {
        var opts = $.data(_153, "datagrid").options;
        var tr = opts.finder.getTr(_153, _154);
        var row = opts.finder.getRow(_153, _154);
        if (tr.hasClass("datagrid-row-editing")) {
            return;
        }
        if (opts.onBeforeEdit.apply(_153, _5(_153, [_154, row])) == false) {
            return;
        }
        tr.addClass("datagrid-row-editing");
        _155(_153, _154);
        _f6(_153);
        tr.find("div.datagrid-editable").each(function () {
            var _156 = $(this).parent().attr("field");
            var ed = $.data(this, "datagrid.editor");
            ed.actions.setValue(ed.target, row[_156]);
        });
        _157(_153, _154);
        opts.onBeginEdit.apply(_153, _5(_153, [_154, row]));
    };

    function _158(_159, _15a, _15b) {
        var _15c = $.data(_159, "datagrid");
        var opts = _15c.options;
        var _15d = _15c.updatedRows;
        var _15e = _15c.insertedRows;
        var tr = opts.finder.getTr(_159, _15a);
        var row = opts.finder.getRow(_159, _15a);
        if (!tr.hasClass("datagrid-row-editing")) {
            return;
        }
        if (!_15b) {
            if (!_157(_159, _15a)) {
                return;
            }
            var _15f = false;
            var _160 = {};
            tr.find("div.datagrid-editable").each(function () {
                var _161 = $(this).parent().attr("field");
                var ed = $.data(this, "datagrid.editor");
                var t = $(ed.target);
                var _162 = t.data("textbox") ? t.textbox("textbox") : t;
                if (_162.is(":focus")) {
                    _162.triggerHandler("blur");
                }
                var _163 = ed.actions.getValue(ed.target);
                if (row[_161] !== _163) {
                    row[_161] = _163;
                    _15f = true;
                    _160[_161] = _163;
                }
            });
            if (_15f) {
                if (_2(_15e, row) == -1) {
                    if (_2(_15d, row) == -1) {
                        _15d.push(row);
                    }
                }
            }
            opts.onEndEdit.apply(_159, _5(_159, [_15a, row, _160]));
        }
        tr.removeClass("datagrid-row-editing");
        _164(_159, _15a);
        $(_159).datagrid("refreshRow", _15a);
        if (!_15b) {
            opts.onAfterEdit.apply(_159, _5(_159, [_15a, row, _160]));
        } else {
            opts.onCancelEdit.apply(_159, _5(_159, [_15a, row]));
        }
    };

    function _165(_166, _167) {
        var opts = $.data(_166, "datagrid").options;
        var tr = opts.finder.getTr(_166, _167);
        var _168 = [];
        tr.children("td").each(function () {
            var cell = $(this).find("div.datagrid-editable");
            if (cell.length) {
                var ed = $.data(cell[0], "datagrid.editor");
                _168.push(ed);
            }
        });
        return _168;
    };

    function _169(_16a, _16b) {
        var _16c = _165(_16a, _16b.index != undefined ? _16b.index : _16b.id);
        for (var i = 0; i < _16c.length; i++) {
            if (_16c[i].field == _16b.field) {
                return _16c[i];
            }
        }
        return null;
    };

    function _155(_16d, _16e) {
        var opts = $.data(_16d, "datagrid").options;
        var tr = opts.finder.getTr(_16d, _16e);
        tr.children("td").each(function () {
            var cell = $(this).find("div.datagrid-cell");
            var _16f = $(this).attr("field");
            var col = _74(_16d, _16f);
            if (col && col.editor) {
                var _170, _171;
                if (typeof col.editor == "string") {
                    _170 = col.editor;
                } else {
                    _170 = col.editor.type;
                    _171 = col.editor.options;
                }
                var _172 = opts.editors[_170];
                if (_172) {
                    var _173 = cell.html();
                    var _174 = cell._outerWidth();
                    cell.addClass("datagrid-editable");
                    cell._outerWidth(_174);
                    cell.html("<table border=\"0\" cellspacing=\"0\" cellpadding=\"1\"><tr><td></td></tr></table>");
                    cell.children("table").bind("click dblclick contextmenu", function (e) {
                        e.stopPropagation();
                    });
                    $.data(cell[0], "datagrid.editor", {
                        actions: _172,
                        target: _172.init(cell.find("td"), $.extend({height: opts.editorHeight}, _171)),
                        field: _16f,
                        type: _170,
                        oldHtml: _173
                    });
                }
            }
        });
        _34(_16d, _16e, true);
    };

    function _164(_175, _176) {
        var opts = $.data(_175, "datagrid").options;
        var tr = opts.finder.getTr(_175, _176);
        tr.children("td").each(function () {
            var cell = $(this).find("div.datagrid-editable");
            if (cell.length) {
                var ed = $.data(cell[0], "datagrid.editor");
                if (ed.actions.destroy) {
                    ed.actions.destroy(ed.target);
                }
                cell.html(ed.oldHtml);
                $.removeData(cell[0], "datagrid.editor");
                cell.removeClass("datagrid-editable");
                cell.css("width", "");
            }
        });
    };

    function _157(_177, _178) {
        var tr = $.data(_177, "datagrid").options.finder.getTr(_177, _178);
        if (!tr.hasClass("datagrid-row-editing")) {
            return true;
        }
        var vbox = tr.find(".validatebox-text");
        vbox.validatebox("validate");
        vbox.trigger("mouseleave");
        var _179 = tr.find(".validatebox-invalid");
        return _179.length == 0;
    };

    function _17a(_17b, _17c) {
        var _17d = $.data(_17b, "datagrid").insertedRows;
        var _17e = $.data(_17b, "datagrid").deletedRows;
        var _17f = $.data(_17b, "datagrid").updatedRows;
        if (!_17c) {
            var rows = [];
            rows = rows.concat(_17d);
            rows = rows.concat(_17e);
            rows = rows.concat(_17f);
            return rows;
        } else {
            if (_17c == "inserted") {
                return _17d;
            } else {
                if (_17c == "deleted") {
                    return _17e;
                } else {
                    if (_17c == "updated") {
                        return _17f;
                    }
                }
            }
        }
        return [];
    };

    function _180(_181, _182) {
        var _183 = $.data(_181, "datagrid");
        var opts = _183.options;
        var data = _183.data;
        var _184 = _183.insertedRows;
        var _185 = _183.deletedRows;
        $(_181).datagrid("cancelEdit", _182);
        var row = opts.finder.getRow(_181, _182);
        if (_2(_184, row) >= 0) {
            _3(_184, row);
        } else {
            _185.push(row);
        }
        _3(_183.selectedRows, opts.idField, row[opts.idField]);
        _3(_183.checkedRows, opts.idField, row[opts.idField]);
        opts.view.deleteRow.call(opts.view, _181, _182);
        if (opts.height == "auto") {
            _34(_181);
        }
        $(_181).datagrid("getPager").pagination("refresh", {total: data.total});
    };

    function _186(_187, _188) {
        var data = $.data(_187, "datagrid").data;
        var view = $.data(_187, "datagrid").options.view;
        var _189 = $.data(_187, "datagrid").insertedRows;
        view.insertRow.call(view, _187, _188.index, _188.row);
        _189.push(_188.row);
        $(_187).datagrid("getPager").pagination("refresh", {total: data.total});
    };

    function _18a(_18b, row) {
        var data = $.data(_18b, "datagrid").data;
        var view = $.data(_18b, "datagrid").options.view;
        var _18c = $.data(_18b, "datagrid").insertedRows;
        view.insertRow.call(view, _18b, null, row);
        _18c.push(row);
        $(_18b).datagrid("getPager").pagination("refresh", {total: data.total});
    };

    function _18d(_18e, _18f) {
        var _190 = $.data(_18e, "datagrid");
        var opts = _190.options;
        var row = opts.finder.getRow(_18e, _18f.index);
        var _191 = false;
        _18f.row = _18f.row || {};
        for (var _192 in _18f.row) {
            if (row[_192] !== _18f.row[_192]) {
                _191 = true;
                break;
            }
        }
        if (_191) {
            if (_2(_190.insertedRows, row) == -1) {
                if (_2(_190.updatedRows, row) == -1) {
                    _190.updatedRows.push(row);
                }
            }
            opts.view.updateRow.call(opts.view, _18e, _18f.index, _18f.row);
        }
    };

    function _193(_194) {
        var _195 = $.data(_194, "datagrid");
        var data = _195.data;
        var rows = data.rows;
        var _196 = [];
        for (var i = 0; i < rows.length; i++) {
            _196.push($.extend({}, rows[i]));
        }
        _195.originalRows = _196;
        _195.updatedRows = [];
        _195.insertedRows = [];
        _195.deletedRows = [];
    };

    function _197(_198) {
        var data = $.data(_198, "datagrid").data;
        var ok = true;
        for (var i = 0, len = data.rows.length; i < len; i++) {
            if (_157(_198, i)) {
                $(_198).datagrid("endEdit", i);
            } else {
                ok = false;
            }
        }
        if (ok) {
            _193(_198);
        }
    };

    function _199(_19a) {
        var _19b = $.data(_19a, "datagrid");
        var opts = _19b.options;
        var _19c = _19b.originalRows;
        var _19d = _19b.insertedRows;
        var _19e = _19b.deletedRows;
        var _19f = _19b.selectedRows;
        var _1a0 = _19b.checkedRows;
        var data = _19b.data;

        function _1a1(a) {
            var ids = [];
            for (var i = 0; i < a.length; i++) {
                ids.push(a[i][opts.idField]);
            }
            return ids;
        };

        function _1a2(ids, _1a3) {
            for (var i = 0; i < ids.length; i++) {
                var _1a4 = _11c(_19a, ids[i]);
                if (_1a4 >= 0) {
                    (_1a3 == "s" ? _a5 : _a2)(_19a, _1a4, true);
                }
            }
        };
        for (var i = 0; i < data.rows.length; i++) {
            $(_19a).datagrid("cancelEdit", i);
        }
        var _1a5 = _1a1(_19f);
        var _1a6 = _1a1(_1a0);
        _19f.splice(0, _19f.length);
        _1a0.splice(0, _1a0.length);
        data.total += _19e.length - _19d.length;
        data.rows = _19c;
        _c0(_19a, data);
        _1a2(_1a5, "s");
        _1a2(_1a6, "c");
        _193(_19a);
    };

    function _bf(_1a7, _1a8, cb) {
        var opts = $.data(_1a7, "datagrid").options;
        if (_1a8) {
            opts.queryParams = _1a8;
        }
        var _1a9 = $.extend({}, opts.queryParams);
        if (opts.pagination) {
            $.extend(_1a9, {page: opts.pageNumber || 1, rows: opts.pageSize});
        }
        if (opts.sortName) {
            $.extend(_1a9, {sort: opts.sortName, order: opts.sortOrder});
        }
        if (opts.onBeforeLoad.call(_1a7, _1a9) == false) {
            return;
        }
        $(_1a7).datagrid("loading");
        var _1aa = opts.loader.call(_1a7, _1a9, function (data) {
            $(_1a7).datagrid("loaded");
            $(_1a7).datagrid("loadData", data);
            if (cb) {
                cb();
            }
        }, function () {
            $(_1a7).datagrid("loaded");
            opts.onLoadError.apply(_1a7, arguments);
        });
        if (_1aa == false) {
            $(_1a7).datagrid("loaded");
        }
    };

    function _1ab(_1ac, _1ad) {
        var opts = $.data(_1ac, "datagrid").options;
        _1ad.type = _1ad.type || "body";
        _1ad.rowspan = _1ad.rowspan || 1;
        _1ad.colspan = _1ad.colspan || 1;
        if (_1ad.rowspan == 1 && _1ad.colspan == 1) {
            return;
        }
        var tr = opts.finder.getTr(_1ac, (_1ad.index != undefined ? _1ad.index : _1ad.id), _1ad.type);
        if (!tr.length) {
            return;
        }
        var td = tr.find("td[field=\"" + _1ad.field + "\"]");
        td.attr("rowspan", _1ad.rowspan).attr("colspan", _1ad.colspan);
        td.addClass("datagrid-td-merged");
        _1ae(td.next(), _1ad.colspan - 1);
        for (var i = 1; i < _1ad.rowspan; i++) {
            tr = tr.next();
            if (!tr.length) {
                break;
            }
            _1ae(tr.find("td[field=\"" + _1ad.field + "\"]"), _1ad.colspan);
        }
        _f5(_1ac, td);

        function _1ae(td, _1af) {
            for (var i = 0; i < _1af; i++) {
                td.hide();
                td = td.next();
            }
        };
    };
    $.fn.datagrid = function (_1b0, _1b1) {
        if (typeof _1b0 == "string") {
            return $.fn.datagrid.methods[_1b0](this, _1b1);
        }
        _1b0 = _1b0 || {};
        return this.each(function () {
            var _1b2 = $.data(this, "datagrid");
            var opts;
            if (_1b2) {
                opts = $.extend(_1b2.options, _1b0);
                _1b2.options = opts;
            } else {
                opts = $.extend({}, $.extend({}, $.fn.datagrid.defaults, {queryParams: {}}), $.fn.datagrid.parseOptions(this), _1b0);
                $(this).css("width", "").css("height", "");
                var _1b3 = _4d(this, opts.rownumbers);
                if (!opts.columns) {
                    opts.columns = _1b3.columns;
                }
                if (!opts.frozenColumns) {
                    opts.frozenColumns = _1b3.frozenColumns;
                }
                opts.columns = $.extend(true, [], opts.columns);
                opts.frozenColumns = $.extend(true, [], opts.frozenColumns);
                opts.view = $.extend({}, opts.view);
                $.data(this, "datagrid", {
                    options: opts,
                    panel: _1b3.panel,
                    dc: _1b3.dc,
                    ss: null,
                    selectedRows: [],
                    checkedRows: [],
                    data: {total: 0, rows: []},
                    originalRows: [],
                    updatedRows: [],
                    insertedRows: [],
                    deletedRows: []
                });
            }
            _58(this);
            _75(this);
            _1a(this);
            if (opts.data) {
                $(this).datagrid("loadData", opts.data);
            } else {
                var data = $.fn.datagrid.parseData(this);
                if (data.total > 0) {
                    $(this).datagrid("loadData", data);
                } else {
                    opts.view.setEmptyMsg(this);
                    $(this).datagrid("autoSizeColumn");
                }
            }
            _bf(this);
        });
    };

    function _1b4(_1b5) {
        var _1b6 = {};
        $.map(_1b5, function (name) {
            _1b6[name] = _1b7(name);
        });
        return _1b6;

        function _1b7(name) {
            function isA(_1b8) {
                return $.data($(_1b8)[0], name) != undefined;
            };
            return {
                init: function (_1b9, _1ba) {
                    var _1bb = $("<input type=\"text\" class=\"datagrid-editable-input\">").appendTo(_1b9);
                    if (_1bb[name] && name != "text") {
                        return _1bb[name](_1ba);
                    } else {
                        return _1bb;
                    }
                }, destroy: function (_1bc) {
                    if (isA(_1bc, name)) {
                        $(_1bc)[name]("destroy");
                    }
                }, getValue: function (_1bd) {
                    if (isA(_1bd, name)) {
                        var opts = $(_1bd)[name]("options");
                        if (opts.multiple) {
                            return $(_1bd)[name]("getValues").join(opts.separator);
                        } else {
                            return $(_1bd)[name]("getValue");
                        }
                    } else {
                        return $(_1bd).val();
                    }
                }, setValue: function (_1be, _1bf) {
                    if (isA(_1be, name)) {
                        var opts = $(_1be)[name]("options");
                        if (opts.multiple) {
                            if (_1bf) {
                                $(_1be)[name]("setValues", _1bf.split(opts.separator));
                            } else {
                                $(_1be)[name]("clear");
                            }
                        } else {
                            $(_1be)[name]("setValue", _1bf);
                        }
                    } else {
                        $(_1be).val(_1bf);
                    }
                }, resize: function (_1c0, _1c1) {
                    if (isA(_1c0, name)) {
                        $(_1c0)[name]("resize", _1c1);
                    } else {
                        $(_1c0)._size({width: _1c1, height: $.fn.datagrid.defaults.editorHeight});
                    }
                }
            };
        };
    };
    var _1c2 = $.extend({}, _1b4(["text", "textbox", "passwordbox", "filebox", "numberbox", "numberspinner", "combobox", "combotree", "combogrid", "combotreegrid", "datebox", "datetimebox", "timespinner", "datetimespinner"]), {
        textarea: {
            init: function (_1c3, _1c4) {
                var _1c5 = $("<textarea class=\"datagrid-editable-input\"></textarea>").appendTo(_1c3);
                _1c5.css("vertical-align", "middle")._outerHeight(_1c4.height);
                return _1c5;
            }, getValue: function (_1c6) {
                return $(_1c6).val();
            }, setValue: function (_1c7, _1c8) {
                $(_1c7).val(_1c8);
            }, resize: function (_1c9, _1ca) {
                $(_1c9)._outerWidth(_1ca);
            }
        }, checkbox: {
            init: function (_1cb, _1cc) {
                var _1cd = $("<input type=\"checkbox\">").appendTo(_1cb);
                _1cd.val(_1cc.on);
                _1cd.attr("offval", _1cc.off);
                return _1cd;
            }, getValue: function (_1ce) {
                if ($(_1ce).is(":checked")) {
                    return $(_1ce).val();
                } else {
                    return $(_1ce).attr("offval");
                }
            }, setValue: function (_1cf, _1d0) {
                var _1d1 = false;
                if ($(_1cf).val() == _1d0) {
                    _1d1 = true;
                }
                $(_1cf)._propAttr("checked", _1d1);
            }
        }, validatebox: {
            init: function (_1d2, _1d3) {
                var _1d4 = $("<input type=\"text\" class=\"datagrid-editable-input\">").appendTo(_1d2);
                _1d4.validatebox(_1d3);
                return _1d4;
            }, destroy: function (_1d5) {
                $(_1d5).validatebox("destroy");
            }, getValue: function (_1d6) {
                return $(_1d6).val();
            }, setValue: function (_1d7, _1d8) {
                $(_1d7).val(_1d8);
            }, resize: function (_1d9, _1da) {
                $(_1d9)._outerWidth(_1da)._outerHeight($.fn.datagrid.defaults.editorHeight);
            }
        }
    });
    $.fn.datagrid.methods = {
        options: function (jq) {
            var _1db = $.data(jq[0], "datagrid").options;
            var _1dc = $.data(jq[0], "datagrid").panel.panel("options");
            var opts = $.extend(_1db, {
                width: _1dc.width,
                height: _1dc.height,
                closed: _1dc.closed,
                collapsed: _1dc.collapsed,
                minimized: _1dc.minimized,
                maximized: _1dc.maximized
            });
            return opts;
        }, setSelectionState: function (jq) {
            return jq.each(function () {
                _114(this);
            });
        }, createStyleSheet: function (jq) {
            return _7(jq[0]);
        }, getPanel: function (jq) {
            return $.data(jq[0], "datagrid").panel;
        }, getPager: function (jq) {
            return $.data(jq[0], "datagrid").panel.children("div.datagrid-pager");
        }, getColumnFields: function (jq, _1dd) {
            return _73(jq[0], _1dd);
        }, getColumnOption: function (jq, _1de) {
            return _74(jq[0], _1de);
        }, resize: function (jq, _1df) {
            return jq.each(function () {
                _1a(this, _1df);
            });
        }, load: function (jq, _1e0) {
            return jq.each(function () {
                var opts = $(this).datagrid("options");
                if (typeof _1e0 == "string") {
                    opts.url = _1e0;
                    _1e0 = null;
                }
                opts.pageNumber = 1;
                var _1e1 = $(this).datagrid("getPager");
                _1e1.pagination("refresh", {pageNumber: 1});
                _bf(this, _1e0);
            });
        }, reload: function (jq, _1e2) {
            return jq.each(function () {
                var opts = $(this).datagrid("options");
                if (typeof _1e2 == "string") {
                    opts.url = _1e2;
                    _1e2 = null;
                }
                _bf(this, _1e2);
            });
        }, reloadFooter: function (jq, _1e3) {
            return jq.each(function () {
                var opts = $.data(this, "datagrid").options;
                var dc = $.data(this, "datagrid").dc;
                if (_1e3) {
                    $.data(this, "datagrid").footer = _1e3;
                }
                if (opts.showFooter) {
                    opts.view.renderFooter.call(opts.view, this, dc.footer2, false);
                    opts.view.renderFooter.call(opts.view, this, dc.footer1, true);
                    if (opts.view.onAfterRender) {
                        opts.view.onAfterRender.call(opts.view, this);
                    }
                    $(this).datagrid("fixRowHeight");
                }
            });
        }, loading: function (jq) {
            return jq.each(function () {
                var opts = $.data(this, "datagrid").options;
                $(this).datagrid("getPager").pagination("loading");
                if (opts.loadMsg) {
                    var _1e4 = $(this).datagrid("getPanel");
                    if (!_1e4.children("div.datagrid-mask").length) {
                        $("<div class=\"datagrid-mask\" style=\"display:block\"></div>").appendTo(_1e4);
                        var msg = $("<div class=\"datagrid-mask-msg\" style=\"display:block;left:50%\"></div>").html(opts.loadMsg).appendTo(_1e4);
                        msg._outerHeight(40);
                        msg.css({marginLeft: (-msg.outerWidth() / 2), lineHeight: (msg.height() + "px")});
                    }
                }
            });
        }, loaded: function (jq) {
            return jq.each(function () {
                $(this).datagrid("getPager").pagination("loaded");
                var _1e5 = $(this).datagrid("getPanel");
                _1e5.children("div.datagrid-mask-msg").remove();
                _1e5.children("div.datagrid-mask").remove();
            });
        }, fitColumns: function (jq) {
            return jq.each(function () {
                _cc(this);
            });
        }, fixColumnSize: function (jq, _1e6) {
            return jq.each(function () {
                _ef(this, _1e6);
            });
        }, fixRowHeight: function (jq, _1e7) {
            return jq.each(function () {
                _34(this, _1e7);
            });
        }, freezeRow: function (jq, _1e8) {
            return jq.each(function () {
                _45(this, _1e8);
            });
        }, autoSizeColumn: function (jq, _1e9) {
            return jq.each(function () {
                _e0(this, _1e9);
            });
        }, loadData: function (jq, data) {
            return jq.each(function () {
                _c0(this, data);
                _193(this);
            });
        }, getData: function (jq) {
            return $.data(jq[0], "datagrid").data;
        }, getRows: function (jq) {
            return $.data(jq[0], "datagrid").data.rows;
        }, getFooterRows: function (jq) {
            return $.data(jq[0], "datagrid").footer;
        }, getRowIndex: function (jq, id) {
            return _11c(jq[0], id);
        }, getChecked: function (jq) {
            return _122(jq[0]);
        }, getSelected: function (jq) {
            var rows = _11f(jq[0]);
            return rows.length > 0 ? rows[0] : null;
        }, getSelections: function (jq) {
            return _11f(jq[0]);
        }, clearSelections: function (jq) {
            return jq.each(function () {
                var _1ea = $.data(this, "datagrid");
                var _1eb = _1ea.selectedRows;
                var _1ec = _1ea.checkedRows;
                _1eb.splice(0, _1eb.length);
                _133(this);
                if (_1ea.options.checkOnSelect) {
                    _1ec.splice(0, _1ec.length);
                }
            });
        }, clearChecked: function (jq) {
            return jq.each(function () {
                var _1ed = $.data(this, "datagrid");
                var _1ee = _1ed.selectedRows;
                var _1ef = _1ed.checkedRows;
                _1ef.splice(0, _1ef.length);
                _8a(this);
                if (_1ed.options.selectOnCheck) {
                    _1ee.splice(0, _1ee.length);
                }
            });
        }, scrollTo: function (jq, _1f0) {
            return jq.each(function () {
                _125(this, _1f0);
            });
        }, highlightRow: function (jq, _1f1) {
            return jq.each(function () {
                _9c(this, _1f1);
                _125(this, _1f1);
            });
        }, selectAll: function (jq) {
            return jq.each(function () {
                _138(this);
            });
        }, unselectAll: function (jq) {
            return jq.each(function () {
                _133(this);
            });
        }, selectRow: function (jq, _1f2) {
            return jq.each(function () {
                _a5(this, _1f2);
            });
        }, selectRecord: function (jq, id) {
            return jq.each(function () {
                var opts = $.data(this, "datagrid").options;
                if (opts.idField) {
                    var _1f3 = _11c(this, id);
                    if (_1f3 >= 0) {
                        $(this).datagrid("selectRow", _1f3);
                    }
                }
            });
        }, unselectRow: function (jq, _1f4) {
            return jq.each(function () {
                _a6(this, _1f4);
            });
        }, checkRow: function (jq, _1f5) {
            return jq.each(function () {
                _a2(this, _1f5);
            });
        }, uncheckRow: function (jq, _1f6) {
            return jq.each(function () {
                _a3(this, _1f6);
            });
        }, checkAll: function (jq) {
            return jq.each(function () {
                _89(this);
            });
        }, uncheckAll: function (jq) {
            return jq.each(function () {
                _8a(this);
            });
        }, beginEdit: function (jq, _1f7) {
            return jq.each(function () {
                _152(this, _1f7);
            });
        }, endEdit: function (jq, _1f8) {
            return jq.each(function () {
                _158(this, _1f8, false);
            });
        }, cancelEdit: function (jq, _1f9) {
            return jq.each(function () {
                _158(this, _1f9, true);
            });
        }, getEditors: function (jq, _1fa) {
            return _165(jq[0], _1fa);
        }, getEditor: function (jq, _1fb) {
            return _169(jq[0], _1fb);
        }, refreshRow: function (jq, _1fc) {
            return jq.each(function () {
                var opts = $.data(this, "datagrid").options;
                opts.view.refreshRow.call(opts.view, this, _1fc);
            });
        }, validateRow: function (jq, _1fd) {
            return _157(jq[0], _1fd);
        }, updateRow: function (jq, _1fe) {
            return jq.each(function () {
                _18d(this, _1fe);
            });
        }, appendRow: function (jq, row) {
            return jq.each(function () {
                _18a(this, row);
            });
        }, insertRow: function (jq, _1ff) {
            return jq.each(function () {
                _186(this, _1ff);
            });
        }, deleteRow: function (jq, _200) {
            return jq.each(function () {
                _180(this, _200);
            });
        }, getChanges: function (jq, _201) {
            return _17a(jq[0], _201);
        }, acceptChanges: function (jq) {
            return jq.each(function () {
                _197(this);
            });
        }, rejectChanges: function (jq) {
            return jq.each(function () {
                _199(this);
            });
        }, mergeCells: function (jq, _202) {
            return jq.each(function () {
                _1ab(this, _202);
            });
        }, showColumn: function (jq, _203) {
            return jq.each(function () {
                var col = $(this).datagrid("getColumnOption", _203);
                if (col.hidden) {
                    col.hidden = false;
                    $(this).datagrid("getPanel").find("td[field=\"" + _203 + "\"]").show();
                    _c1(this, _203, 1);
                    $(this).datagrid("fitColumns");
                }
            });
        }, hideColumn: function (jq, _204) {
            return jq.each(function () {
                var col = $(this).datagrid("getColumnOption", _204);
                if (!col.hidden) {
                    col.hidden = true;
                    $(this).datagrid("getPanel").find("td[field=\"" + _204 + "\"]").hide();
                    _c1(this, _204, -1);
                    $(this).datagrid("fitColumns");
                }
            });
        }, sort: function (jq, _205) {
            return jq.each(function () {
                _8c(this, _205);
            });
        }, gotoPage: function (jq, _206) {
            return jq.each(function () {
                var _207 = this;
                var page, cb;
                if (typeof _206 == "object") {
                    page = _206.page;
                    cb = _206.callback;
                } else {
                    page = _206;
                }
                $(_207).datagrid("options").pageNumber = page;
                $(_207).datagrid("getPager").pagination("refresh", {pageNumber: page});
                _bf(_207, null, function () {
                    if (cb) {
                        cb.call(_207, page);
                    }
                });
            });
        }
    };
    $.fn.datagrid.parseOptions = function (_208) {
        var t = $(_208);
        return $.extend({}, $.fn.panel.parseOptions(_208), $.parser.parseOptions(_208, ["url", "toolbar", "idField", "sortName", "sortOrder", "pagePosition", "resizeHandle", {
            sharedStyleSheet: "boolean",
            fitColumns: "boolean",
            autoRowHeight: "boolean",
            striped: "boolean",
            nowrap: "boolean"
        }, {
            rownumbers: "boolean",
            singleSelect: "boolean",
            ctrlSelect: "boolean",
            checkOnSelect: "boolean",
            selectOnCheck: "boolean"
        }, {pagination: "boolean", pageSize: "number", pageNumber: "number"}, {
            multiSort: "boolean",
            remoteSort: "boolean",
            showHeader: "boolean",
            showFooter: "boolean"
        }, {scrollbarSize: "number"}]), {
            pageList: (t.attr("pageList") ? eval(t.attr("pageList")) : undefined),
            loadMsg: (t.attr("loadMsg") != undefined ? t.attr("loadMsg") : undefined),
            rowStyler: (t.attr("rowStyler") ? eval(t.attr("rowStyler")) : undefined)
        });
    };
    $.fn.datagrid.parseData = function (_209) {
        var t = $(_209);
        var data = {total: 0, rows: []};
        var _20a = t.datagrid("getColumnFields", true).concat(t.datagrid("getColumnFields", false));
        t.find("tbody tr").each(function () {
            data.total++;
            var row = {};
            $.extend(row, $.parser.parseOptions(this, ["iconCls", "state"]));
            for (var i = 0; i < _20a.length; i++) {
                row[_20a[i]] = $(this).find("td:eq(" + i + ")").html();
            }
            data.rows.push(row);
        });
        return data;
    };
    var _20b = {
        render: function (_20c, _20d, _20e) {
            var rows = $(_20c).datagrid("getRows");
            $(_20d).html(this.renderTable(_20c, 0, rows, _20e));
        }, renderFooter: function (_20f, _210, _211) {
            var opts = $.data(_20f, "datagrid").options;
            var rows = $.data(_20f, "datagrid").footer || [];
            var _212 = $(_20f).datagrid("getColumnFields", _211);
            var _213 = ["<table class=\"datagrid-ftable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
            for (var i = 0; i < rows.length; i++) {
                _213.push("<tr class=\"datagrid-row\" datagrid-row-index=\"" + i + "\">");
                _213.push(this.renderRow.call(this, _20f, _212, _211, i, rows[i]));
                _213.push("</tr>");
            }
            _213.push("</tbody></table>");
            $(_210).html(_213.join(""));
        }, renderTable: function (_214, _215, rows, _216) {
            var _217 = $.data(_214, "datagrid");
            var opts = _217.options;
            if (_216) {
                if (!(opts.rownumbers || (opts.frozenColumns && opts.frozenColumns.length))) {
                    return "";
                }
            }
            var _218 = $(_214).datagrid("getColumnFields", _216);
            var _219 = ["<table class=\"datagrid-btable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>"];
            for (var i = 0; i < rows.length; i++) {
                var row = rows[i];
                var css = opts.rowStyler ? opts.rowStyler.call(_214, _215, row) : "";
                var cs = this.getStyleValue(css);
                var cls = "class=\"datagrid-row " + (_215 % 2 && opts.striped ? "datagrid-row-alt " : " ") + cs.c + "\"";
                var _21a = cs.s ? "style=\"" + cs.s + "\"" : "";
                var _21b = _217.rowIdPrefix + "-" + (_216 ? 1 : 2) + "-" + _215;
                _219.push("<tr id=\"" + _21b + "\" datagrid-row-index=\"" + _215 + "\" " + cls + " " + _21a + ">");
                _219.push(this.renderRow.call(this, _214, _218, _216, _215, row));
                _219.push("</tr>");
                _215++;
            }
            _219.push("</tbody></table>");
            return _219.join("");
        }, renderRow: function (_21c, _21d, _21e, _21f, _220) {
            var opts = $.data(_21c, "datagrid").options;
            var cc = [];
            if (_21e && opts.rownumbers) {
                var _221 = _21f + 1;
                if (opts.pagination) {
                    _221 += (opts.pageNumber - 1) * opts.pageSize;
                }
                cc.push("<td class=\"datagrid-td-rownumber\"><div class=\"datagrid-cell-rownumber\">" + _221 + "</div></td>");
            }
            for (var i = 0; i < _21d.length; i++) {
                var _222 = _21d[i];
                var col = $(_21c).datagrid("getColumnOption", _222);
                if (col) {
                    var _223 = _220[_222];
                    var css = col.styler ? (col.styler(_223, _220, _21f) || "") : "";
                    var cs = this.getStyleValue(css);
                    var cls = cs.c ? "class=\"" + cs.c + "\"" : "";
                    var _224 = col.hidden ? "style=\"display:none;" + cs.s + "\"" : (cs.s ? "style=\"" + cs.s + "\"" : "");
                    cc.push("<td field=\"" + _222 + "\" " + cls + " " + _224 + ">");
                    var _224 = "";
                    if (!col.checkbox) {
                        if (col.align) {
                            _224 += "text-align:" + col.align + ";";
                        }
                        if (!opts.nowrap) {
                            _224 += "white-space:normal;height:auto;";
                        } else {
                            if (opts.autoRowHeight) {
                                _224 += "height:auto;";
                            }
                        }
                    }
                    cc.push("<div style=\"" + _224 + "\" ");
                    cc.push(col.checkbox ? "class=\"datagrid-cell-check\"" : "class=\"datagrid-cell " + col.cellClass + "\"");
                    cc.push(">");
                    if (col.checkbox) {
                        cc.push("<input type=\"checkbox\" " + (_220.checked ? "checked=\"checked\"" : ""));
                        cc.push(" name=\"" + _222 + "\" value=\"" + (_223 != undefined ? _223 : "") + "\">");
                    } else {
                        if (col.formatter) {
                            cc.push(col.formatter(_223, _220, _21f));
                        } else {
                            cc.push(_223);
                        }
                    }
                    cc.push("</div>");
                    cc.push("</td>");
                }
            }
            return cc.join("");
        }, getStyleValue: function (css) {
            var _225 = "";
            var _226 = "";
            if (typeof css == "string") {
                _226 = css;
            } else {
                if (css) {
                    _225 = css["class"] || "";
                    _226 = css["style"] || "";
                }
            }
            return {c: _225, s: _226};
        }, refreshRow: function (_227, _228) {
            this.updateRow.call(this, _227, _228, {});
        }, updateRow: function (_229, _22a, row) {
            var opts = $.data(_229, "datagrid").options;
            var _22b = opts.finder.getRow(_229, _22a);
            $.extend(_22b, row);
            var cs = _22c.call(this, _22a);
            var _22d = cs.s;
            var cls = "datagrid-row " + (_22a % 2 && opts.striped ? "datagrid-row-alt " : " ") + cs.c;

            function _22c(_22e) {
                var css = opts.rowStyler ? opts.rowStyler.call(_229, _22e, _22b) : "";
                return this.getStyleValue(css);
            };

            function _22f(_230) {
                var _231 = $(_229).datagrid("getColumnFields", _230);
                var tr = opts.finder.getTr(_229, _22a, "body", (_230 ? 1 : 2));
                var _232 = tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked");
                tr.html(this.renderRow.call(this, _229, _231, _230, _22a, _22b));
                tr.attr("style", _22d).attr("class", cls);
                if (_232) {
                    tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked", true);
                }
            };
            _22f.call(this, true);
            _22f.call(this, false);
            $(_229).datagrid("fixRowHeight", _22a);
        }, insertRow: function (_233, _234, row) {
            var _235 = $.data(_233, "datagrid");
            var opts = _235.options;
            var dc = _235.dc;
            var data = _235.data;
            if (_234 == undefined || _234 == null) {
                _234 = data.rows.length;
            }
            if (_234 > data.rows.length) {
                _234 = data.rows.length;
            }

            function _236(_237) {
                var _238 = _237 ? 1 : 2;
                for (var i = data.rows.length - 1; i >= _234; i--) {
                    var tr = opts.finder.getTr(_233, i, "body", _238);
                    tr.attr("datagrid-row-index", i + 1);
                    tr.attr("id", _235.rowIdPrefix + "-" + _238 + "-" + (i + 1));
                    if (_237 && opts.rownumbers) {
                        var _239 = i + 2;
                        if (opts.pagination) {
                            _239 += (opts.pageNumber - 1) * opts.pageSize;
                        }
                        tr.find("div.datagrid-cell-rownumber").html(_239);
                    }
                    if (opts.striped) {
                        tr.removeClass("datagrid-row-alt").addClass((i + 1) % 2 ? "datagrid-row-alt" : "");
                    }
                }
            };

            function _23a(_23b) {
                var _23c = _23b ? 1 : 2;
                var _23d = $(_233).datagrid("getColumnFields", _23b);
                var _23e = _235.rowIdPrefix + "-" + _23c + "-" + _234;
                var tr = "<tr id=\"" + _23e + "\" class=\"datagrid-row\" datagrid-row-index=\"" + _234 + "\"></tr>";
                if (_234 >= data.rows.length) {
                    if (data.rows.length) {
                        opts.finder.getTr(_233, "", "last", _23c).after(tr);
                    } else {
                        var cc = _23b ? dc.body1 : dc.body2;
                        cc.html("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tbody>" + tr + "</tbody></table>");
                    }
                } else {
                    opts.finder.getTr(_233, _234 + 1, "body", _23c).before(tr);
                }
            };
            _236.call(this, true);
            _236.call(this, false);
            _23a.call(this, true);
            _23a.call(this, false);
            data.total += 1;
            data.rows.splice(_234, 0, row);
            this.setEmptyMsg(_233);
            this.refreshRow.call(this, _233, _234);
        }, deleteRow: function (_23f, _240) {
            var _241 = $.data(_23f, "datagrid");
            var opts = _241.options;
            var data = _241.data;

            function _242(_243) {
                var _244 = _243 ? 1 : 2;
                for (var i = _240 + 1; i < data.rows.length; i++) {
                    var tr = opts.finder.getTr(_23f, i, "body", _244);
                    tr.attr("datagrid-row-index", i - 1);
                    tr.attr("id", _241.rowIdPrefix + "-" + _244 + "-" + (i - 1));
                    if (_243 && opts.rownumbers) {
                        var _245 = i;
                        if (opts.pagination) {
                            _245 += (opts.pageNumber - 1) * opts.pageSize;
                        }
                        tr.find("div.datagrid-cell-rownumber").html(_245);
                    }
                    if (opts.striped) {
                        tr.removeClass("datagrid-row-alt").addClass((i - 1) % 2 ? "datagrid-row-alt" : "");
                    }
                }
            };
            opts.finder.getTr(_23f, _240).remove();
            _242.call(this, true);
            _242.call(this, false);
            data.total -= 1;
            data.rows.splice(_240, 1);
            this.setEmptyMsg(_23f);
        }, onBeforeRender: function (_246, rows) {
        }, onAfterRender: function (_247) {
            var _248 = $.data(_247, "datagrid");
            var opts = _248.options;
            if (opts.showFooter) {
                var _249 = $(_247).datagrid("getPanel").find("div.datagrid-footer");
                _249.find("div.datagrid-cell-rownumber,div.datagrid-cell-check").css("visibility", "hidden");
            }
            this.setEmptyMsg(_247);
        }, setEmptyMsg: function (_24a) {
            var _24b = $.data(_24a, "datagrid");
            var opts = _24b.options;
            var _24c = opts.finder.getRows(_24a).length == 0;
            if (_24c) {
                this.renderEmptyRow(_24a);
            }
            if (opts.emptyMsg) {
                if (_24c) {
                    var h = _24b.dc.header2.parent().outerHeight();
                    var d = $("<div class=\"datagrid-empty\"></div>").appendTo(_24b.dc.view);
                    d.html(opts.emptyMsg).css("top", h + "px");
                } else {
                    _24b.dc.view.children(".datagrid-empty").remove();
                }
            }
        }, renderEmptyRow: function (_24d) {
            var cols = $.map($(_24d).datagrid("getColumnFields"), function (_24e) {
                return $(_24d).datagrid("getColumnOption", _24e);
            });
            $.map(cols, function (col) {
                col.formatter1 = col.formatter;
                col.styler1 = col.styler;
                col.formatter = col.styler = undefined;
            });
            var _24f = $.data(_24d, "datagrid").dc.body2;
            _24f.html(this.renderTable(_24d, 0, [{}], false));
            _24f.find("tbody *").css({height: 1, borderColor: "transparent", background: "transparent"});
            var tr = _24f.find(".datagrid-row");
            tr.removeClass("datagrid-row").removeAttr("datagrid-row-index");
            tr.find(".datagrid-cell,.datagrid-cell-check").empty();
            $.map(cols, function (col) {
                col.formatter = col.formatter1;
                col.styler = col.styler1;
                col.formatter1 = col.styler1 = undefined;
            });
        }
    };
    $.fn.datagrid.defaults = $.extend({}, $.fn.panel.defaults, {
        sharedStyleSheet: false,
        frozenColumns: undefined,
        columns: undefined,
        fitColumns: false,
        resizeHandle: "right",
        autoRowHeight: true,
        toolbar: null,
        striped: false,
        method: "post",
        nowrap: true,
        idField: null,
        url: null,
        data: null,
        loadMsg: "Processing, please wait ...",
        emptyMsg: "",
        rownumbers: false,
        singleSelect: false,
        ctrlSelect: false,
        selectOnCheck: true,
        checkOnSelect: true,
        pagination: false,
        pagePosition: "bottom",
        pageNumber: 1,
        pageSize: 10,
        pageList: [10, 20, 30, 40, 50],
        queryParams: {},
        sortName: null,
        sortOrder: "asc",
        multiSort: false,
        remoteSort: true,
        showHeader: true,
        showFooter: false,
        scrollbarSize: 18,
        rownumberWidth: 30,
        editorHeight: 24,
        headerEvents: {mouseover: _82(true), mouseout: _82(false), click: _86, dblclick: _8d, contextmenu: _93},
        rowEvents: {mouseover: _96(true), mouseout: _96(false), click: _9e, dblclick: _a9, contextmenu: _ae},
        rowStyler: function (_250, _251) {
        },
        loader: function (_252, _253, _254) {
            var opts = $(this).datagrid("options");
            if (!opts.url) {
                return false;
            }
            $.ajax({
                type: opts.method, url: opts.url, data: _252, dataType: "json", success: function (data) {
                    _253(data);
                }, error: function () {
                    _254.apply(this, arguments);
                }
            });
        },
        loadFilter: function (data) {
            return data;
        },
        editors: _1c2,
        finder: {
            getTr: function (_255, _256, type, _257) {
                type = type || "body";
                _257 = _257 || 0;
                var _258 = $.data(_255, "datagrid");
                var dc = _258.dc;
                var opts = _258.options;
                if (_257 == 0) {
                    var tr1 = opts.finder.getTr(_255, _256, type, 1);
                    var tr2 = opts.finder.getTr(_255, _256, type, 2);
                    return tr1.add(tr2);
                } else {
                    if (type == "body") {
                        var tr = $("#" + _258.rowIdPrefix + "-" + _257 + "-" + _256);
                        if (!tr.length) {
                            tr = (_257 == 1 ? dc.body1 : dc.body2).find(">table>tbody>tr[datagrid-row-index=" + _256 + "]");
                        }
                        return tr;
                    } else {
                        if (type == "footer") {
                            return (_257 == 1 ? dc.footer1 : dc.footer2).find(">table>tbody>tr[datagrid-row-index=" + _256 + "]");
                        } else {
                            if (type == "selected") {
                                return (_257 == 1 ? dc.body1 : dc.body2).find(">table>tbody>tr.datagrid-row-selected");
                            } else {
                                if (type == "highlight") {
                                    return (_257 == 1 ? dc.body1 : dc.body2).find(">table>tbody>tr.datagrid-row-over");
                                } else {
                                    if (type == "checked") {
                                        return (_257 == 1 ? dc.body1 : dc.body2).find(">table>tbody>tr.datagrid-row-checked");
                                    } else {
                                        if (type == "editing") {
                                            return (_257 == 1 ? dc.body1 : dc.body2).find(">table>tbody>tr.datagrid-row-editing");
                                        } else {
                                            if (type == "last") {
                                                return (_257 == 1 ? dc.body1 : dc.body2).find(">table>tbody>tr[datagrid-row-index]:last");
                                            } else {
                                                if (type == "allbody") {
                                                    return (_257 == 1 ? dc.body1 : dc.body2).find(">table>tbody>tr[datagrid-row-index]");
                                                } else {
                                                    if (type == "allfooter") {
                                                        return (_257 == 1 ? dc.footer1 : dc.footer2).find(">table>tbody>tr[datagrid-row-index]");
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }, getRow: function (_259, p) {
                var _25a = (typeof p == "object") ? p.attr("datagrid-row-index") : p;
                return $.data(_259, "datagrid").data.rows[parseInt(_25a)];
            }, getRows: function (_25b) {
                return $(_25b).datagrid("getRows");
            }
        },
        view: _20b,
        onBeforeLoad: function (_25c) {
        },
        onLoadSuccess: function () {
        },
        onLoadError: function () {
        },
        onClickRow: function (_25d, _25e) {
        },
        onDblClickRow: function (_25f, _260) {
        },
        onClickCell: function (_261, _262, _263) {
        },
        onDblClickCell: function (_264, _265, _266) {
        },
        onBeforeSortColumn: function (sort, _267) {
        },
        onSortColumn: function (sort, _268) {
        },
        onResizeColumn: function (_269, _26a) {
        },
        onBeforeSelect: function (_26b, _26c) {
        },
        onSelect: function (_26d, _26e) {
        },
        onBeforeUnselect: function (_26f, _270) {
        },
        onUnselect: function (_271, _272) {
        },
        onSelectAll: function (rows) {
        },
        onUnselectAll: function (rows) {
        },
        onBeforeCheck: function (_273, _274) {
        },
        onCheck: function (_275, _276) {
        },
        onBeforeUncheck: function (_277, _278) {
        },
        onUncheck: function (_279, _27a) {
        },
        onCheckAll: function (rows) {
        },
        onUncheckAll: function (rows) {
        },
        onBeforeEdit: function (_27b, _27c) {
        },
        onBeginEdit: function (_27d, _27e) {
        },
        onEndEdit: function (_27f, _280, _281) {
        },
        onAfterEdit: function (_282, _283, _284) {
        },
        onCancelEdit: function (_285, _286) {
        },
        onHeaderContextMenu: function (e, _287) {
        },
        onRowContextMenu: function (e, _288, _289) {
        }
    });
})(jQuery);

